// Copyright  2011, 2012 Petr TALLA. [petr.talla@gmail.com]
// This file is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This file is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY;  without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
// [http://www.gnu.org/copyleft/lesser.html]
//=============================================================================
#pragma once

#include <TcCmdEngine.h>

//=============================================================================
class TcCmds_htmlView {
//=============================================================================
protected:
//<CMDS>
    static int set_current_tab(TcCmdEngine* engine, TcArgCol& args);
    static int tab_set_commands(TcCmdEngine* engine, TcArgCol& args);
    static int tab_set_log(TcCmdEngine* engine, TcArgCol& args);
    static int tab_set_info(TcCmdEngine* engine, TcArgCol& args);
//<REGISTRATOR>
    static bool registrator_;
    static bool registerCmds_()
    {   TcCmd* cmd;
        cmd = TcCmdEngine::engine().registerCmd("set_current_tab", set_current_tab);
        cmd->frontControllExclude();
        cmd = TcCmdEngine::engine().registerCmd("tab_set_commands", tab_set_commands);
        cmd->frontControllExclude();
        cmd = TcCmdEngine::engine().registerCmd("tab_set_log", tab_set_log);
        cmd->frontControllExclude();
        cmd = TcCmdEngine::engine().registerCmd("tab_set_info", tab_set_info);
        cmd->frontControllExclude();
        return true;
    };

    TcCmds_htmlView();
};
